<template>
    <button class="btn-class-name" @click="submit">
        <span class="back"></span>
        <span class="front">{{ text }}</span>
    </button>
</template>

<script setup>
// ========================= 接收值 =========================
const props = defineProps({
    text: {
        type: String,
        default: '发射'
    }
});

// ========================= 发送给父组件的方法 =========================
const emit = defineEmits();
function submit() {
    emit('submit')
};
</script>

<style lang="scss" scoped>
    @import './message-button.scss';
</style>
